//一般直接写在一个js文件中
layui.use(['element','upload'],function () {
    var $ = layui.$,
    upload = layui.upload;

    $("#dy").on('click',function(){
        var $print = $("#print");
        $print.find(".hulve").hide();
        $print.jqprint();
        $print.find(".hulve").show();
    });

    $("#tjsh").on('click',function () {
        layer.open({
            type: 2,
            content: '/gbassessRecords/tjshenhe?id='+$("#pgId").val(),
            area: ['400px', '380px'],
            title: '上传审核',
            btn: ['提交'],
            yes: function (index, layero) {
                layer.msg("提交成功，等待审核",{time:1500},function () {
                    location.reload();
                    layer.close(index);
                })
            }
        });
    })

});
